<?php
/**
 * Module VimuaInformationDistributor
 * 
 * Module thong tin nha cung cap Vimua
 * @copyright SYS Company
 * @author : Mr  Nguyen Van Hanh
 * @version : 1.0
*/
class VimuaInformationDistributor extends Listing
{
	
	function init()
	{
		$this->table = CTable('provider');		
		$this->items_per_page = 2;

		//blacknight's change title of page
		$this->reset_description = "Vimua.com: Danh sách nhà phân phối";
		
		//reset title
		$setting_title = $this->setting("title");
		$this->reset_title = "".( isset( $setting_title  )? $setting_title : "");
		if ($this->reset_title != ""){
		    CPage::$current->params['title'] = $this->reset_title;
		}

		//reset description
		$setting_description = $this->setting("meta_description");
		$this->reset_description = $this->reset_description.( isset( $setting_description  )? $setting_description : "");
		CPage::$current->params['meta_description'] = $this->reset_description;

 	}
	/*
	function draw()
	{
		$estore_id=portal()->id;
		//echo $estore_id;
		$estore = CTable("estore")->select_all();
		//print_r($estore);exit();
		CForm($this->path().'/layout.tpl')->parse(
			array(
				'items'=>$estore
			)
		);
 	}
	*/
}
?>